import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import reportWebVitals from './reportWebVitals';
import { BrowserRouter as Router } from "react-router-dom";
// 引入antd组件样式
import 'antd/dist/antd.css'; // or 'antd/dist/antd.less'
// import 'ant-design-vue/dist/antd.css';

import "./mock/index.js" // 引入mock
import './assets/iconfont/iconfont.css'
import { store, persistor } from './redux/store' // 导入store
import { PersistGate } from 'redux-persist/integration/react';
import { Provider } from 'react-redux'
ReactDOM.render(
  <Provider store={store}>
    <PersistGate loading={null} persistor={persistor}>
      <Router>
        <App />
      </Router>
    </PersistGate>
  </Provider>,
  document.getElementById('root')
);

// If you want to start measuring performance in your app, pass a function
// to log results (for example: reportWebVitals(console.log))
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
reportWebVitals();
